.withdrawal-record-page {
  background-color: #F2F3F8;
  min-height: 100vh;
  padding: 20rpx;

  .page-header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90rpx;
    border-bottom: 1rpx solid #E5E5E5;
    margin-bottom: 20rpx;

    .header-title {
      font-size: 36rpx;
      font-weight: bold;
      color: #333;
    }
  }

  .filter-container {
    background-color: #fff;
    border-radius: 16rpx;
    padding: 20rpx;
    margin-bottom: 20rpx;

    .filter-item {
      display: flex;
      align-items: center;
      margin-bottom: 20rpx;

      &:last-child {
        margin-bottom: 0;
      }

      .filter-label {
        width: 120rpx;
        font-size: 28rpx;
        color: #333;
      }

      .picker {
        flex: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 70rpx;
        padding: 0 20rpx;
        background-color: #F7F7F7;
        border-radius: 10rpx;
        font-size: 28rpx;
        color: #333;
      }

      .date-picker-group {
        flex: 1;
        display: flex;
        align-items: center;

        .picker {
          flex: 1;
          margin: 0 10rpx;
        }

        .separator {
          width: 20rpx;
          text-align: center;
          font-size: 28rpx;
          color: #999;
        }
      }
    }

    .filter-button {
      width: 100%;
      height: 70rpx;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: #F7F7F7;
      border-radius: 10rpx;
      font-size: 28rpx;
      color: #666;
      margin-top: 10rpx;
      border: none;
      outline: none;
      box-shadow: none;
    }
  }

  .record-list {
    background-color: #fff;
    border-radius: 16rpx;
    padding: 20rpx;

    .record-item {
      padding: 20rpx 0;
      border-bottom: 1rpx solid #F0F0F0;
}
      &:last-child {
        border-bottom: none;
      }

      .item-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20rpx;

        .withdrawal-id {
          font-size: 28rpx;
          color: #333;
        }

        .status-tag {
            padding: 6rpx 16rpx;
            border-radius: 20rpx;
            font-size: 24rpx;
            font-weight: 500;

            &.wait-user-confirm {
              background-color: #FFF2E8;
              color: #FF9A43;
            }

            &.accepted {
              background-color: #E8F5E9;
              color: #4CAF50;
            }

            &.processing {
              background-color: #FFF8E1;
              color: #FFC107;
            }

            &.transfering {
              background-color: #E3F2FD;
              color: #2196F3;
            }

            &.success {
              background-color: #E8F5E9;
              color: #4CAF50;
            }

            &.fail {
              background-color: #FFEBEE;
              color: #F44336;
            }

            &.canceling {
              background-color: #E0E0E0;
              color: #616161;
            }

            &.cancelled {
              background-color: #F5F5F5;
              color: #9E9E9E;
            }
          }
      }

      .item-body {
        .amount-box {
          margin-bottom: 20rpx;

          .amount {
            font-size: 40rpx;
            font-weight: bold;
            color: #E53935;
          }
        }

        .confirm-payment-btn {
          width: 160rpx;
          height: 60rpx;
          display: flex;
          justify-content: center;
          align-items: center;
          background-color: #2196F3;
          color: white;
          border-radius: 30rpx;
          font-size: 28rpx;
          margin-top: -60rpx;
          margin-left: auto;
        }

        .info-row {
          display: flex;
          margin-bottom: 16rpx;

          &:last-child {
            margin-bottom: 0;
          }

          .label {
            width: 140rpx;
            font-size: 26rpx;
            color: #888;
          }

          .value {
            flex: 1;
            font-size: 26rpx;
            color: #333;
          }
        }
      }
    }

    .empty-state {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 100rpx 0;

      .empty-image {
        width: 200rpx;
        height: 200rpx;
        margin-bottom: 30rpx;
      }

      .empty-text {
        font-size: 28rpx;
        color: #999;
      }
    }

    .loading-state {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 50rpx 0;

      text {
        margin-top: 20rpx;
        font-size: 28rpx;
        color: #999;
      }

      .loading-spinner {
        width: 50rpx;
        height: 50rpx;
        border: 6rpx solid #f3f3f3;
        border-top: 6rpx solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
      }

      @keyframes spin {
        0% {
          transform: rotate(0deg);
        }

        100% {
          transform: rotate(360deg);
        }
      }
    }
  }